<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">
<!--<h:outputText value="#{bundle.ViewPersonaLabel_codigoInterno}"/>
                    <h:outputText value="#{personaController.selected.codigoInterno}" title="#{bundle.ViewPersonaTitle_codigoInterno}"/>-->
                    
    <ui:composition template="../templateAdmin.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.ViewPersonaTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputText value="#{bundle.ViewPersonaLabel_cedula}"/>
                    <h:outputText value="#{personaController.selected.cedula}" title="#{bundle.ViewPersonaTitle_cedula}"/>
                    <h:outputText value="#{bundle.ViewPersonaLabel_login}"/>
                    <h:outputText value="#{personaController.selected.login}" title="#{bundle.ViewPersonaTitle_login}"/>
                    <h:outputText value="#{bundle.ViewPersonaLabel_contrasennia}"/>
                    <h:outputText value="#{personaController.selected.contrasennia}" title="#{bundle.ViewPersonaTitle_contrasennia}"/>
                    <h:outputText value="#{bundle.ViewPersonaLabel_nombres}"/>
                    <h:outputText value="#{personaController.selected.nombres}" title="#{bundle.ViewPersonaTitle_nombres}"/>
                    <h:outputText value="#{bundle.ViewPersonaLabel_apellidos}"/>
                    <h:outputText value="#{personaController.selected.apellidos}" title="#{bundle.ViewPersonaTitle_apellidos}"/>
                    <h:outputText value="#{bundle.ViewPersonaLabel_direccion}"/>
                    <h:outputText value="#{personaController.selected.direccion}" title="#{bundle.ViewPersonaTitle_direccion}"/>
                    <h:outputText value="#{bundle.ViewPersonaLabel_telefono}"/>
                    <h:outputText value="#{personaController.selected.telefono}" title="#{bundle.ViewPersonaTitle_telefono}"/>
                    <h:outputText value="#{bundle.ViewPersonaLabel_sexo}"/>
                    <h:outputText value="#{personaController.viewSex}" title="#{bundle.ViewPersonaTitle_sexo}"/>
                    <h:outputText value="#{bundle.ViewPersonaLabel_movil}"/>
                    <h:outputText value="#{personaController.selected.movil}" title="#{bundle.ViewPersonaTitle_movil}"/>
                    <h:outputText value="#{bundle.ViewPersonaLabel_correo}"/>
                    <h:outputText value="#{personaController.selected.correo}" title="#{bundle.ViewPersonaTitle_correo}"/>
                    <h:outputText value="#{bundle.ViewPersonaLabel_codigoPerfil}"/>
                    <h:outputText styleClass="codigoPerfil" value="#{personaController.selected.codigoPerfil.nombre}" title="#{bundle.ViewPersonaTitle_codigoPerfil}"/>
                </h:panelGrid>

<!--                Empleado-->
                <h:panelGrid columns="2" styleClass="pEmpleado" rendered="#{personaController.entitieEmpleado != null}">
                    <h:outputText value="#{bundle.CreateEmpleadoLabel_cargo}"/>
                    <h:outputText id="cargo" value="#{personaController.cargo}" title="#{bundle.CreateEmpleadoTitle_cargo}"/>
                    <h:outputText value="#{bundle.CreateEmpleadoLabel_codigoDepartamento}"/>
                    <h:outputText id="codigoDepartamento" value="#{personaController.paraEditarDepto.nombre}" title="#{bundle.CreateEmpleadoTitle_codigoDepartamento}"/>
                </h:panelGrid>
<!--                termino empleado-->
                <br />
                <h:commandLink action="#{personaController.destroyAndView}" value="#{bundle.ViewPersonaDestroyLink}" rendered="#{personaController.selected.codigoPerfil.codigo != 4}" />
                <br />
                <br />
                <h:commandLink action="Edit" value="#{bundle.ViewPersonaEditLink}" rendered="#{personaController.selected.codigoPerfil.codigo != 4}"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.ViewPersonaIndexLink}" action="#{personaController.prepareList}" immediate="true" />

            </h:form>
        </ui:define>
    </ui:composition>

</html>
